<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
		<title>login</title>
		<link rel="stylesheet" type="text/css" href="css/login.css" />
	</head>
	<body>
		<div class="login-box">
				<form action="task2.html" method="post" id="loginForm">
					<div class="top">
						<h3>后台管理</h3>
					</div>
					<div class="middle">
						<span>帐号：</span>
						<input type="text" name="login_name" id="username" required="required">
						<span>密码：</span>
						<input type="password" name="password" id="password" required="required">
						<span id="login_msg"></span>
					</div>
					<div class="bottom">
						<input type="submit" id="submit-btn" value="登录">
					</div>
				</form>
		</div>
	</body>
	<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
	<script type="text/javascript">
		var form = $("#loginForm");
		form.submit(function(e){
			alert("ee");
			e.preventDefault();
			//location.href = "task2.html";
		});
		
	</script>
</html>